<!--#include file="Config_reg.asp"-->
<%
zy_username=trim(request("zy_username"))
zy_name=trim(request("zy_name"))
dep_id=int(request("dep_id"))

if zy_name<>"" And zy_username<>"" then
sql="select * from tb_zy where vkid is null"
rs.open sql,conn,1,3
rs.addnew
rs("zy_username")=zy_username
rs("zy_name")=zy_name
rs("zy_order")=Trim(Request("zy_order"))
rs("dep_id")=dep_id
rs("zy_state")=1 '状态为1 审核中
rs("ZY_Dimission")=1 '状态为1 在职
rs.Update
UserID=rs("vkid")
rs.close


Set rs=Nothing
Set conn=Nothing

'response.redirect "Emp_Edit.asp?userID="&userID
session("zy_state")=1
session("ZY_Dimission")=1
'zy_state=1
%>
1
<%
Else
'zy_state=0
%>
0
<%
end If
%>